package weibo.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CommentDTO {
    @NotBlank(message = "评论内容不能为空")
    @ApiModelProperty(value = "评论内容",required = true)
    private String content;
    @NotNull(message = "微博id不能为空")
    @Range(min = 1,message = "微博id格式不正确")
    @ApiModelProperty(value = "微博id",required = true)
    private Integer weiboId;
}
